﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IPluginInterface
{
    public interface IMessageReturn
    {
        /// <summary>
        /// 接收到现场机返回消息时触发(所有现场机的返回消息)
        /// </summary>
        /// <param name="msg">消息对象</param>
        void OnMessageRecived(MessageModel msg);

        /// <summary>
        /// 接收到离线消息回执时触发（只有离线缓存回执）
        /// </summary>
        /// <param name="msg">离线消息内容</param>
        void OnOffLineMessageRecived(MessageModel msg);

        /// <summary>
        /// 接收到离线消息回执时触发
        /// </summary>
        /// <param name="smstitle">标题：默认是“仪器反控”</param>
        /// <param name="smscontent">内容</param>
        /// <param name="userid">用户ID</param>
        void OnOffLineMessageRecived(string smstitle, string smscontent, string userid);

        /// <summary>
        /// 实时数据接收到的触发事件
        /// </summary>
        /// <param name="msg">实时数据</param>
        void OnRunTimeMessageRecived(MessageModel msg);

        /// <summary>
        /// 分钟，小时，天历史数据
        /// </summary>
        /// <param name="msg">历史数据</param>
        void OnHistoryMessageRecived(MessageModel msg);

        /// <summary>
        /// 报警事件
        /// </summary>
        /// <param name="msg">报警的数据</param>
        void OnAlertDesired(MessageModel msg);


    }
}
